﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using StockFinder.Services.Extractors.Symbols;
using StockFinder.Model;
using StockFinder.Services.Extractors;
using StockFinder.Services.Extractors.EODData;

namespace Testharness
{
    public partial class SymbolExtractorTestHarness : Form
    {
        public SymbolExtractorTestHarness()
        {
            InitializeComponent();
        }

        private void _NasdaqSymbolExtractorButton_Click(object sender, EventArgs e)
        {
            var extractor = new NasdaqSymbolListExtractor();

            var symbols = extractor.GetSymbols();

            symbols.ForEach(s => System.Diagnostics.Debug.WriteLine(s.Name));
        }

        private void button1_Click(object sender, EventArgs e)
        {
            ISymbolListExtractor extractor = new EODDataSymbolListExtractor();
            List<Symbol> symbols = extractor.GetSymbolList();
        }
    }
}
